-- GENERATED SPELL FOR [Ratchet Bruiser] --


function spell0_3502(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(12024,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3502', 5287, 1)
end

function spell1_3502(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(23337,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3502', 531, 1)
end

function Sorts_3502(pUnit, Event)
local choix_sorts_3502 = math.random(0, 1)
if choix_sorts_3502 == 0 then
pUnit:RegisterEvent('spell0_3502', 1, 1)
end
if choix_sorts_3502 == 1 then
pUnit:RegisterEvent('spell1_3502', 1, 1)
end
end

function mob3502_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3502', math.random(1500, 3000), 1)
end

function mob3502_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3502_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3502_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3502, 1, 'mob3502_Action')
RegisterUnitEvent(3502, 2, 'mob3502_Leave')
RegisterUnitEvent(3502, 3, 'mob3502_Kill')
RegisterUnitEvent(3502, 4, 'mob3502_Die')
